package com.rzl.expense.expense.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.ElePaymentdetailMapper;
import com.rzl.expense.expense.domain.ElePaymentdetail;
import com.rzl.expense.expense.service.IElePaymentdetailService;

/**
 * 电缴费明细Service业务层处理
 * 
 * @author expense
 * @date 2024-11-30
 */
@Service
public class ElePaymentdetailServiceImpl implements IElePaymentdetailService 
{
    @Autowired
    private ElePaymentdetailMapper elePaymentdetailMapper;

    /**
     * 查询电缴费明细
     * 
     * @param paymentdetailId 电缴费明细主键
     * @return 电缴费明细
     */
    @Override
    public ElePaymentdetail selectElePaymentdetailByPaymentdetailId(String paymentdetailId)
    {
        return elePaymentdetailMapper.selectElePaymentdetailByPaymentdetailId(paymentdetailId);
    }

    /**
     * 查询电缴费明细列表
     * 
     * @param elePaymentdetail 电缴费明细
     * @return 电缴费明细
     */
    @Override
    public List<ElePaymentdetail> selectElePaymentdetailList(ElePaymentdetail elePaymentdetail)
    {
        return elePaymentdetailMapper.selectElePaymentdetailList(elePaymentdetail);
    }

    /**
     * 新增电缴费明细
     * 
     * @param elePaymentdetail 电缴费明细
     * @return 结果
     */
    @Override
    public int insertElePaymentdetail(ElePaymentdetail elePaymentdetail)
    {
        return elePaymentdetailMapper.insertElePaymentdetail(elePaymentdetail);
    }

    /**
     * 修改电缴费明细
     * 
     * @param elePaymentdetail 电缴费明细
     * @return 结果
     */
    @Override
    public int updateElePaymentdetail(ElePaymentdetail elePaymentdetail)
    {
        return elePaymentdetailMapper.updateElePaymentdetail(elePaymentdetail);
    }

    /**
     * 批量删除电缴费明细
     * 
     * @param paymentdetailIds 需要删除的电缴费明细主键
     * @return 结果
     */
    @Override
    public int deleteElePaymentdetailByPaymentdetailIds(String[] paymentdetailIds)
    {
        return elePaymentdetailMapper.deleteElePaymentdetailByPaymentdetailIds(paymentdetailIds);
    }

    /**
     * 删除电缴费明细信息
     * 
     * @param paymentdetailId 电缴费明细主键
     * @return 结果
     */
    @Override
    public int deleteElePaymentdetail(String[] currentDate)
    {
        return elePaymentdetailMapper.deleteElePaymentdetail(currentDate[0],currentDate[1]);
    }




    @Override
    public void batchElePaymentdetail(List<ElePaymentdetail> list)
    {

         elePaymentdetailMapper.batchElePaymentdetail(list);
    }


}
